home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / grizzly-adventure.swf / scripts / _HSliderStyle.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  1.6 KB  |  53 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.SliderHighlightSkin;
  5.    import mx.skins.halo.SliderThumbSkin;
  6.    import mx.skins.halo.SliderTrackSkin;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _HSliderStyle
  11.    {
  12.        
  13.       
  14.       public function _HSliderStyle()
  15.       {
  16.          super();
  17.       }
  18.       
  19.       public static function init(param1:IFlexModuleFactory) : void
  20.       {
  21.          var fbs:IFlexModuleFactory = param1;
  22.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("HSlider");
  23.          if(!style)
  24.          {
  25.             style = new CSSStyleDeclaration();
  26.             StyleManager.setStyleDeclaration("HSlider",style,false);
  27.          }
  28.          if(style.defaultFactory == null)
  29.          {
  30.             style.defaultFactory = function():void
  31.             {
  32.                this.thumbOffset = 0;
  33.                this.borderColor = 9542041;
  34.                this.trackHighlightSkin = SliderHighlightSkin;
  35.                this.tickColor = 7305079;
  36.                this.tickOffset = -6;
  37.                this.labelOffset = -10;
  38.                this.tickLength = 4;
  39.                this.trackColors = [15198183,15198183];
  40.                this.dataTipPlacement = "top";
  41.                this.dataTipOffset = 16;
  42.                this.trackSkin = SliderTrackSkin;
  43.                this.showTrackHighlight = false;
  44.                this.thumbSkin = SliderThumbSkin;
  45.                this.tickThickness = 1;
  46.                this.dataTipPrecision = 2;
  47.                this.slideDuration = 300;
  48.             };
  49.          }
  50.       }
  51.    }
  52. }
  53.